ch06/debugger/SyllableCounter.java
 import java.util.Scanner;

 /**
 This program counts the syllables of all words in a sentence.
 */
 public class SyllableCounter
 {
 public static void main(String[] args)
 {
 Scanner in = new Scanner(System.in);

 System.out.println("Enter a sentence ending in a period.");

 String input;
 do
 {
 input = in.next();
 Word w = new Word(input);
 int syllables = w.countSyllables();
 System.out.println("Syllables in " + input + ":"
 + syllables);
 }
 while (!input.endsWith("."));
 }
 }